package hust.edu.Service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import hust.edu.Dao.IUserDao;
import hust.edu.Model.User;

@Service
public class UserService {
	@Resource
	private IUserDao userDao;
	
	public boolean login(User user){
		return userDao.selectByUser(user)!=null?true:false;
	}
	
	public User selectByUsername(String username){
		return userDao.selectByUsername(username);
	}
}
